package com.jiuli_travel.goods_service.service;

import com.jiuli_travel.goods_service.model.dto.goods.GoodsInsertRequest;
import com.jiuli_travel.goods_service.model.dto.goods.PurchaseGoodsRequest;
import com.jiuli_travel.goods_service.model.entity.Goods;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jiuli_travel.utils.Result;

import java.io.IOException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jiuli
 * @since 2024-05-06
 */
public interface IGoodsService extends IService<Goods> {

    /**
     * 发布商品
     */
    Result publishGoods(GoodsInsertRequest goodsInsertRequest);

    /**
     * 下架商品
     */
    Result shelvesGoods(Long goodsId);

    /**
     * search商品信息
     */
    Result searchGoods(String searchText, Integer from, Integer size) throws IOException;


}



